Passed
Push — develop ( 9011bf...5a7fee )
by Endre
03:38
created

TestModule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A render 0 2 1
1
import {render, RenderResult} from '@testing-library/react';
2
import React from 'react';
3
import Page from './Page';
4
import Model from './Page/Model';
5
6
class TestModule extends React.Component<any, any> {
7
  render(): React.ReactElement {
8
    return <div>Test module</div>;
9
  }
10
}
11
12
describe('Application.View.Page', () => {
13
  it('Shows a module', () => {
14
    const model = new Model();
15
    model.module = TestModule;
16
17
    const instance: RenderResult = render(<Page model={model} />);
18
19
    expect(instance.container.textContent).toBe('Test module');
20
  });
21
});